<?php
/**
* phpCan - http://idc.anavallasuiza.com/
*
* phpCan is released under the GNU Affero GPL version 3
*
* More information at license.txt
*/

defined('ANS') or die();

//Init classes
$Events = new Events;
$Errors = new data\Errors;
$Data = new data\Data(getDatabaseObject());
$Templates = new templates\Templates;
$Html = new templates\html\Html;
$Form = new templates\html\Form($Html);
$Admin = new Admin;

//Load message
$Vars->loadMessage();

//Functions
include_once(filePath('includes|functions.php'));

//Load actions
include_once (filePath('phpcan/includes|_actions.php'));
include_once (filePath('phpcan/includes|_data.php'));
include_once (filePath('phpcan/includes|_templates.php'));
?>
